#coding:utf-8
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice
import time 
device = MonkeyRunner.waitForConnection() 
n = 1
while 1:
    #点击泡泡，弹出输入框
    device.touch(160, 25, device.DOWN_AND_UP)
    time.sleep(1)
    #点击物理返回键
    device.press('KEYCODE_BACK', device.DOWN_AND_UP)
    time.sleep(1)
    
    print "Time %s"%n
    n = n + 1

